package cn.hinglo.website.bean;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * @createTime: 2018-11-12 15:06:41
 * @author: HingLo
 * @description: BaseMenu 模型
 */
@Entity
@Table(name = "menu")
public abstract class BaseMenu<M extends BaseMenu<M>> extends Model<M> implements IBean {

    @Column(name = "id")
    public java.lang.Integer getId() {
        return getInt("id");
    }

    public M setId(java.lang.Integer id) {
        set("id", id);
        return (M) this;
    }

    @Column(name = "fid")
    public java.lang.Integer getFid() {
        return getInt("fid");
    }

    public M setFid(java.lang.Integer fid) {
        set("fid", fid);
        return (M) this;
    }

    @Column(name = "name")
    public java.lang.String getName() {
        return getStr("name");
    }

    public M setName(java.lang.String name) {
        set("name", name);
        return (M) this;
    }

    @Column(name = "route")
    public java.lang.String getRoute() {
        return getStr("route");
    }

    public M setRoute(java.lang.String route) {
        set("route", route);
        return (M) this;
    }

    @Column(name = "status")
    public java.lang.Integer getStatus() {
        return getInt("status");
    }

    public M setStatus(java.lang.Integer status) {
        set("status", status);
        return (M) this;
    }

    @Column(name = "sort")
    public java.lang.Integer getSort() {
        return getInt("sort");
    }

    public M setSort(java.lang.Integer sort) {
        set("sort", sort);
        return (M) this;
    }

}
